package cc.icourt.kit.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * -----------------------------------------------
 * 作    者：高延荣
 * 电    话：18963580395
 * 创建日期：2024/6/5 16:59
 * 描    述：des:
 * 修订历史：
 * -----------------------------------------------
 */
//
//     "messages": [
//             {"role": "user", "content": "我被打了怎么办"}
//             ],
//             "stream":true,
//             "id":"0193kdo93mdo93"
public class MainRequestBody {
    public List<Message> messages;
    public Boolean stream = false;
    public String id = "0193kdo93mdo93";

    public MainRequestBody(String content){
        messages = new ArrayList<>();
        messages.add(new Message(content));
    }

    class Message {
        public Message(String content) {
            this.content = content;
        }

        public String role = "user";
        public String content;
    }
}
